import React from "react";

import {
  useHistory,
  useLocation,
  useParams,
  useRouteMatch,
  RouteChildrenProps,
} from "react-router-dom";

import txt from '../../public/test.json'

declare interface propsType {}

export default (props: RouteChildrenProps & propsType): JSX.Element => {
  const history = useHistory();
  const location = useLocation();
  const params = useParams();
  const routeMatch = useRouteMatch();
  console.log(txt, '1111111111')
  console.log(props, history, location, params, routeMatch);
  return (
    <div>
      <p>路由测试</p>
      <button onClick={() => history.push("/svg")}>跳转svg</button>
    </div>
  );
};
